import request from "@/libs/request";

const basePath = '/appcloud-data' ;


export const apiUrls = {
	getEnvs : basePath + '/api/envs/getEnvs',
	saveEnvs : basePath + '/api/envs/save',
}

// 根据应用类型和发布类型查询环境变量
export async function getEnvs(params){
	return request( apiUrls.getEnvs, {
      method:'POST',
      body:params
  })
}

// 保存环境变量
export async function saveEnvs(params){
	return request( apiUrls.saveEnvs, {
      method:'POST',
      body:params
  })
}